package com.smedi.ismedi.authoritymanagement.core.infrastructure.constant;

import com.smedi.ismedi.web.starter.exception.BasicError;
import com.smedi.ismedi.web.starter.exception.ErrorItem;

/**
 * 错误消息提示
 */
public class CustomError extends BasicError {
    public static final ErrorItem CREATE_USERNAME_ERROR = new ErrorItem(1, "创建用户名错误！");

    public static final ErrorItem PASSWORD_FORMAT_ERROR = new ErrorItem(2, "密码需要8位以上数字和字母组合！");

    public static final ErrorItem PASSWORD_SAME_ERROR = new ErrorItem(3, "新密码与老密码一致！");

    public static final ErrorItem PASSWORD_ERROR = new ErrorItem(4, "密码错误！");

    public static final ErrorItem USER_NOT_EXIST = new ErrorItem(5, "用户不存在！");

    public static final ErrorItem VERIFICATION_CODE_EMPTY = new ErrorItem(6, "验证码为空！");

    public static final ErrorItem INVALID_VERIFICATION_CODE = new ErrorItem(7, "无效的验证码！");

    public static final ErrorItem VERIFICATION_CODE_OVERTIME = new ErrorItem(8, "验证码已过期！");

    public static final ErrorItem RESET_PASSWORD_OVERTIME = new ErrorItem(9, "重置密码操作超时！");

    public static final ErrorItem STATUS_CAN_NOT_THE_SAME = new ErrorItem(10, "当前状态与待修改的状态一致！");

    public static final ErrorItem PERSON_NOT_EXIST = new ErrorItem(11, "用户绑定的人员不存在！");

    public static final ErrorItem TOKEN_NOT_AVAILABLE = new ErrorItem(12, "无效的令牌！");

    public static final ErrorItem INVALID_CHILDREN_TYPE = new ErrorItem(13, "不合法的子节点类型！");

    public static final ErrorItem TERM_NOT_FOUND = new ErrorItem(14, "构件不存在！");

    public static final ErrorItem PRIMARY_KEY_MISS = new ErrorItem(15, "主键标记缺失或不唯一！");

    public static final ErrorItem INVALID_CLASS = new ErrorItem(16, "无效的类型！");

    public static final ErrorItem TERM_RELATIONSHIP_TYPE_NOT_EXIST = new ErrorItem(17, "授权分类不存在！");

    public static final ErrorItem FRAME_STRUCTURE_NOT_EXIST = new ErrorItem(18, "框架结构不存在！");

    public static final ErrorItem FRAME_STRUCTURE_ID_NOT_EXIST = new ErrorItem(19, "id对应的框架结构不存在！");

    public static final ErrorItem ROOT_INFO_MISS = new ErrorItem(20, "根节点信息缺失，请填写编码和名称！");

    public static final ErrorItem CHILDREN_CANNOT_HAS_ROOT_INFO = new ErrorItem(21, "子节点不允许包含根节点信息！");

    public static final ErrorItem DUPLICATE_ROOT_CODE = new ErrorItem(22, "重复的根节点编码！");

    public static final ErrorItem TERM_TYPE_OR_ID_MISS = new ErrorItem(23, "构建类型或id信息缺失！");

    public static final ErrorItem TERM_TYPE_NOT_EXIST = new ErrorItem(24, "构建类型不存在！");

    public static final ErrorItem USER_DISABLED = new ErrorItem(25, "用户不可用！");

    public static final ErrorItem ROLE_BASIC_NOT_EXIST = new ErrorItem(26, "角色不存在！");

    public static final ErrorItem ROLE_NAME_DUPLICATE = new ErrorItem(27, "角色名称重复！");

    public static final ErrorItem PERSON_ID_EMPTY = new ErrorItem(28, "绑定人员为空！");

    public static final ErrorItem PERSON_NOT_AVAILABLE = new ErrorItem(29, "当前人员不可用！");

    public static final ErrorItem ROLE_MEMBER_DUPLICATE = new ErrorItem(30, "角色重复分配！");

    public static final ErrorItem ROLE_MEMBER_NOT_EXIST = new ErrorItem(31, "角色分配不存在！");

    public static final ErrorItem ROLE_MEMBER_EXIST = new ErrorItem(32, "角色分配已存在！");

    public static final ErrorItem ROLE_ID_EMPTY = new ErrorItem(33, "角色为空！");

    public static final ErrorItem FRAME_STRUCTURE_ID_MISS = new ErrorItem(34, "框架结构id缺失！");

    public static final ErrorItem SEND_SMS_ERROR = new ErrorItem(35, "发送短信失败！");

    public static final ErrorItem ACCOUNT_NOT_EXIST = new ErrorItem(36, "账号不存在！");

    public static final ErrorItem PROJECT_NOT_ROOT = new ErrorItem(37, "不存在根节点");

    public static final ErrorItem DEVICE_NOT_FOUND = new ErrorItem(38, "不支持该设备");
}
